<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2015/11/3
 * Time: 16:22
 */

class HelpController extends Controller
{


    public function init()
    {
        parent::init();
        $user_info = $this->_session->offsetGet ( 'loginInfos' );
        $this->_view->userInfo=$user_info;
    }

    public function indexAction()
    {
//        $this->_title = '帮助中心';
//        $this->_keywords = '帮助中心-塑料交易-买塑料放心';
//        $this->_description = '帮助中心';
//        $index = new IndexModel();
//        $cate = $index->getCateInfo("cate",50,20);
//        $kd= $this->_request->getParam('kd');
//        $kd=empty($kd) ? '' :htmlspecialchars(trim($kd) , ENT_QUOTES ,'utf-8');
//
//        $this->_view->title = $this->_title;
//        $this->_view->keywords  = $this->_keywords;
//        $this->_view->description = $this->_description;
//        $this->_view->cate = $cate;
//        $this->_view->kd = $kd;

        $this->redirect('/help/entrust');
    }

    //如何委托交易

    public function entrustAction(){
        $this->_title = '如何委托交易';
        $this->_keywords = '帮助中心-塑料交易-买塑料放心';
        $this->_description = '帮助中心';
        $index = new IndexModel();
        $cate = $index->getCateInfo("cate",'','');
        $kd= $this->_request->getParam('kd');
        $kd=empty($kd) ? '' :htmlspecialchars(trim($kd) , ENT_QUOTES ,'utf-8');

        $this->_view->title = $this->_title;
        $this->_view->keywords  = $this->_keywords;
        $this->_view->description = $this->_description;
        $this->_view->cate = $cate;
        $this->_view->kd = $kd;
    }

    //如何自己找货
    public function bargainAction(){
        $this->_title = '如何自己找货';
        $this->_keywords = '帮助中心-塑料交易-买塑料放心';
        $this->_description = '帮助中心';
        $index = new IndexModel();
        $cate = $index->getCateInfo("cate",'','');
        $kd= $this->_request->getParam('kd');
        $kd=empty($kd) ? '' :htmlspecialchars(trim($kd) , ENT_QUOTES ,'utf-8');

        $this->_view->title = $this->_title;
        $this->_view->keywords  = $this->_keywords;
        $this->_view->description = $this->_description;
        $this->_view->cate = $cate;
        $this->_view->kd = $kd;
    }
    //如何查看求购状态
    public function inquirestatusAction(){
        $this->_title = '如何查看求购状态';
        $this->_keywords = '帮助中心-塑料交易-买塑料放心';
        $this->_description = '帮助中心';
        $index = new IndexModel();
        $cate = $index->getCateInfo("cate",'','');
        $kd= $this->_request->getParam('kd');
        $kd=empty($kd) ? '' :htmlspecialchars(trim($kd) , ENT_QUOTES ,'utf-8');

        $this->_view->title = $this->_title;
        $this->_view->keywords  = $this->_keywords;
        $this->_view->description = $this->_description;
        $this->_view->cate = $cate;
        $this->_view->kd = $kd;
    }
    //如何发布报价
    public function quoteAction(){
        $this->_title = '如何发布报价';
        $this->_keywords = '帮助中心-塑料交易-买塑料放心';
        $this->_description = '帮助中心';
        $index = new IndexModel();
        $cate = $index->getCateInfo("cate",'','');
        $kd= $this->_request->getParam('kd');
        $kd=empty($kd) ? '' :htmlspecialchars(trim($kd) , ENT_QUOTES ,'utf-8');

        $this->_view->title = $this->_title;
        $this->_view->keywords  = $this->_keywords;
        $this->_view->description = $this->_description;
        $this->_view->cate = $cate;
        $this->_view->kd = $kd;
    }

    //如何发布qiugou
    public function inquireAction(){
        $this->_title = '如何发布求购';
        $this->_keywords = '帮助中心-塑料交易-买塑料放心';
        $this->_description = '帮助中心';
        $index = new IndexModel();
        $cate = $index->getCateInfo("cate",'','');
        $kd= $this->_request->getParam('kd');
        $kd=empty($kd) ? '' :htmlspecialchars(trim($kd) , ENT_QUOTES ,'utf-8');

        $this->_view->title = $this->_title;
        $this->_view->keywords  = $this->_keywords;
        $this->_view->description = $this->_description;
        $this->_view->cate = $cate;
        $this->_view->kd = $kd;
    }

    //如何发布报价
    public function batchquoteAction(){
        $this->_title = '如何批量发布报价';
        $this->_keywords = '帮助中心-塑料交易-买塑料放心';
        $this->_description = '帮助中心';
        $index = new IndexModel();
        $cate = $index->getCateInfo("cate",'','');
        $kd= $this->_request->getParam('kd');
        $kd=empty($kd) ? '' :htmlspecialchars(trim($kd) , ENT_QUOTES ,'utf-8');

        $this->_view->title = $this->_title;
        $this->_view->keywords  = $this->_keywords;
        $this->_view->description = $this->_description;
        $this->_view->cate = $cate;
        $this->_view->kd = $kd;
    }

    //注册
    public function registerAction(){
        $this->_title = '如何注册';
        $this->_keywords = '帮助中心-塑料交易-买塑料放心';
        $this->_description = '帮助中心';
        $index = new IndexModel();
        $cate = $index->getCateInfo("cate",'','');
        $kd= $this->_request->getParam('kd');
        $kd=empty($kd) ? '' :htmlspecialchars(trim($kd) , ENT_QUOTES ,'utf-8');

        $this->_view->title = $this->_title;
        $this->_view->keywords  = $this->_keywords;
        $this->_view->description = $this->_description;
        $this->_view->cate = $cate;
        $this->_view->kd = $kd;
    }

    public function passwordAction(){
        $this->_title = '忘记密码';
        $this->_keywords = '帮助中心-塑料交易-买塑料放心';
        $this->_description = '帮助中心';
        $index = new IndexModel();
        $cate = $index->getCateInfo("cate",'','');
        $kd= $this->_request->getParam('kd');
        $kd=empty($kd) ? '' :htmlspecialchars(trim($kd) , ENT_QUOTES ,'utf-8');

        $this->_view->title = $this->_title;
        $this->_view->keywords  = $this->_keywords;
        $this->_view->description = $this->_description;
        $this->_view->cate = $cate;
        $this->_view->kd = $kd;
    }

    public function edituserAction(){
        $this->_title = '修改账户';
        $this->_keywords = '帮助中心-塑料交易-买塑料放心';
        $this->_description = '帮助中心';
        $index = new IndexModel();
        $cate = $index->getCateInfo("cate",'','');
        $kd= $this->_request->getParam('kd');
        $kd=empty($kd) ? '' :htmlspecialchars(trim($kd) , ENT_QUOTES ,'utf-8');

        $this->_view->title = $this->_title;
        $this->_view->keywords  = $this->_keywords;
        $this->_view->description = $this->_description;
        $this->_view->cate = $cate;
        $this->_view->kd = $kd;
    }

    public function userserviceAction(){
        $this->_title = '用户服务协议';
        $this->_keywords = '帮助中心-塑料交易-买塑料放心';
        $this->_description = '帮助中心';
        $index = new IndexModel();
        $cate = $index->getCateInfo("cate",'','');
        $kd= $this->_request->getParam('kd');
        $kd=empty($kd) ? '' :htmlspecialchars(trim($kd) , ENT_QUOTES ,'utf-8');

        $this->_view->title = $this->_title;
        $this->_view->keywords  = $this->_keywords;
        $this->_view->description = $this->_description;
        $this->_view->cate = $cate;
        $this->_view->kd = $kd;
    }

    public function invoiceAction(){
        $this->_title = '发票说明';
        $this->_keywords = '帮助中心-塑料交易-买塑料放心';
        $this->_description = '帮助中心';
        $index = new IndexModel();
        $cate = $index->getCateInfo("cate",'','');
        $kd= $this->_request->getParam('kd');
        $kd=empty($kd) ? '' :htmlspecialchars(trim($kd) , ENT_QUOTES ,'utf-8');

        $this->_view->title = $this->_title;
        $this->_view->keywords  = $this->_keywords;
        $this->_view->description = $this->_description;
        $this->_view->cate = $cate;
        $this->_view->kd = $kd;
    }

    public function deliveryAction(){
        $this->_title = '物流配送';
        $this->_keywords = '帮助中心-塑料交易-买塑料放心';
        $this->_description = '帮助中心';
        $index = new IndexModel();
        $cate = $index->getCateInfo("cate",'','');
        $kd= $this->_request->getParam('kd');
        $kd=empty($kd) ? '' :htmlspecialchars(trim($kd) , ENT_QUOTES ,'utf-8');

        $this->_view->title = $this->_title;
        $this->_view->keywords  = $this->_keywords;
        $this->_view->description = $this->_description;
        $this->_view->cate = $cate;
        $this->_view->kd = $kd;
    }

    public function deliverymethodAction(){
        $this->_title = '仓库自提';
        $this->_keywords = '帮助中心-塑料交易-买塑料放心';
        $this->_description = '帮助中心';
        $index = new IndexModel();
        $cate = $index->getCateInfo("cate",'','');
        $kd= $this->_request->getParam('kd');
        $kd=empty($kd) ? '' :htmlspecialchars(trim($kd) , ENT_QUOTES ,'utf-8');

        $this->_view->title = $this->_title;
        $this->_view->keywords  = $this->_keywords;
        $this->_view->description = $this->_description;
        $this->_view->cate = $cate;
        $this->_view->kd = $kd;
    }

}